package com.lanyun.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Stockinfo {

    private Integer stockinfo_id;
    private Admin admin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//入参
    @JsonFormat(pattern = "yyyy-MM-dd")//出参
    private Date stockinfo_operatedate;
    private Warehouse warehouse;
    private Product product;
    private Integer stockinfo_amount;
    private String stockinfo_type;

    public Stockinfo() {
    }

    public Stockinfo(Integer stockinfo_id, Admin admin, Date stockinfo_operatedate, Warehouse warehouse, Product product, Integer stockinfo_amount, String stockinfo_type) {
        this.stockinfo_id = stockinfo_id;
        this.admin = admin;
        this.stockinfo_operatedate = stockinfo_operatedate;
        this.warehouse = warehouse;
        this.product = product;
        this.stockinfo_amount = stockinfo_amount;
        this.stockinfo_type = stockinfo_type;
    }

    @Override
    public String toString() {
        return "StockInfo{" +
                "stockinfo_id=" + stockinfo_id +
                ", admin=" + admin +
                ", stockinfo_operatedate=" + stockinfo_operatedate +
                ", warehouse=" + warehouse +
                ", product=" + product +
                ", stockinfo_amount=" + stockinfo_amount +
                ", stockinfo_type='" + stockinfo_type + '\'' +
                '}';
    }

    public Integer getStockinfo_id() {
        return stockinfo_id;
    }

    public void setStockinfo_id(Integer stockinfo_id) {
        this.stockinfo_id = stockinfo_id;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Date getStockinfo_operatedate() {
        return stockinfo_operatedate;
    }

    public void setStockinfo_operatedate(Date stockinfo_operatedate) {
        this.stockinfo_operatedate = stockinfo_operatedate;
    }

    public Warehouse getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(Warehouse warehouse) {
        this.warehouse = warehouse;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getStockinfo_amount() {
        return stockinfo_amount;
    }

    public void setStockinfo_amount(Integer stockinfo_amount) {
        this.stockinfo_amount = stockinfo_amount;
    }

    public String getStockinfo_type() {
        return stockinfo_type;
    }

    public void setStockinfo_type(String stockinfo_type) {
        this.stockinfo_type = stockinfo_type;
    }
}
